package com.example.lessontable;

import android.app.Activity;
import android.app.FragmentTransaction;
import android.os.Bundle;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        //add方式显示Fragment
        FragmentTransaction transaction = getFragmentManager().beginTransaction();
        transaction.add(R.id.container,new TimeTableFragment(),"lessonTableFragment");
        transaction.commit();

    }
}
